package server.storage;

import static org.junit.Assert.*;

import org.junit.Test;

import server.controller.FacultyUser;
import server.controller.FiuParkingUser;
import server.controller.ParkingUser;

public class ParkingSpotTest {

	@Test //Unit Test U004
	public void getUser(){
		ParkingSpot testSpot = new ParkingSpot(1,"guest",1,"one","W");
		FacultyUser testUser = new FacultyUser("mat","1111");
		testSpot.assignParkingSpot(testUser);
		assertTrue(testSpot.getUser()!=null);
		
		
	}
	@Test //Unit Test U007
	public void getMethods(){
		ParkingSpot testSpot = new ParkingSpot(1,"guest",1,"one","W");
		assertEquals(testSpot.getDirections(),"W");
		assertEquals(testSpot.getFloor(),1);
		assertEquals(testSpot.getParkingNumber(),"one");
		assertEquals(testSpot.getParkingSpot(),1);
		assertEquals(testSpot.getParkingType(),"guest");
		
		
	}
}
